package org.example.myleet.p856;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(88 == solution.scoreOfParentheses("()(())()(((()(()())))(((())(()))()))(((())))"));
        Assert.isTrue(7 == solution.scoreOfParentheses("((())())()"));
        Assert.isTrue(6 == solution.scoreOfParentheses("((())())"));
        Assert.isTrue(3 == solution.scoreOfParentheses("(())()"));
        Assert.isTrue(6 == solution.scoreOfParentheses("(()(()))"));
        Assert.isTrue(7 == solution.scoreOfParentheses("()(()(()))"));
        Assert.isTrue(1 == solution.scoreOfParentheses("()"));
        Assert.isTrue(2 == solution.scoreOfParentheses("(())"));
        Assert.isTrue(2 == solution.scoreOfParentheses("()()"));
    }
}
